package com.xfhy.login;

import android.app.Application;

import com.xfhy.base.BaseApp;
import com.xfhy.componentbase.ServiceFactory;
import com.xfhy.login.service.AccountService;

/**
 * @author : xfhy
 * Create time : 2020-03-01 11:25
 * Description : Login组件中的Application类
 */
public class LoginApp extends BaseApp {

    //这里的onCreate只有在单独调试的时候才会被执行到
    @Override
    public void onCreate() {
        super.onCreate();
        initModuleApp(this);
        initModuleData(this);
    }

    @Override
    public void initModuleApp(Application application) {
        //将AccountService类的实例注册到ServiceFactory中
        ServiceFactory.getInstance().setAccountService(new AccountService());
    }

    @Override
    public void initModuleData(Application application) {

    }
}
